import request from '@/utils/request'

// 查询设计清单列表
export function listDevise(query) {
  return request({
    url: '/safe/devise/list',
    method: 'get',
    params: query
  })
}

// 查询设计清单详细
export function getDevise(id) {
  return request({
    url: '/safe/devise/' + id,
    method: 'get'
  })
}

// 新增设计清单
export function addDevise(data) {
  return request({
    url: '/safe/devise',
    method: 'post',
    data: data
  })
}

// 修改设计清单
export function updateDevise(data) {
  return request({
    url: '/safe/devise',
    method: 'put',
    data: data
  })
}

// 删除设计清单
export function delDevise(id) {
  return request({
    url: '/safe/devise/' + id,
    method: 'delete'
  })
}
